<?php
App::uses('PaymentAppModel', PAYMENT_CAMELCASENAME.'.Model');
/**
 * PluginPaymentGateway Model
 *
 */
class PaymentNotification extends PaymentAppModel {

/**
 * Use table
 *
 * @var mixed False or table name
 */
	public $useTable = 'plugin_payment_notifications';
	
	public $belongsTo = array(
		'Gateway'=>array(
			'foreignKey'=>'gateway_id'
		)
	);
	
	public function __construct($id = false, $table = null, $ds = null){
		$this->belongsTo['Gateway']['className'] = PAYMENT_CAMELCASENAME.'.PaymentGateway';
		parent::__construct();
	}
	
	public function saveNotification($data){
		pr($data);
		return $this->save($data);	
	}
}
